package com.jch.dm.chapter_9_bridge;

/**
 * @author: jch
 * Bridge 模式 测试
 **/
public class Main {

    public static void main(String[] args) {
        Display d1 = new Display(new StringDisplayImpl("Hello Gays!"));
        Display d2 = new CountDisplay(new StringDisplayImpl("Hello 张三！"));
        CountDisplay d3 = new CountDisplay(new StringDisplayImpl("长生不老！"));
        d1.display();
        d2.display();
        d3.display();
        d3.multiDisplay(5);
    }
}
